Import("env")

if env["TEST"] :
	if env["SCONS_STAGE"] == "flags" :
			env["CHECKER_FLAGS"] = {
					"CPPPATH" : ["#/3rdParty/HippoMocks"],
					"LIBS": ["Checker"],
					"LIBPATH": [Dir(".")],
					"LINKFLAGS": env["PLATFORM"] == "win32" and ["/SUBSYSTEM:CONSOLE"] or []
				}

	if env["SCONS_STAGE"] == "build" :
			checker_env = env.Clone()
			checker_env.UseFlags(env["SWIFTEN_FLAGS"])
			checker_env.UseFlags(env["BOOST_FLAGS"])
			checker_env.UseFlags(env["CPPUNIT_FLAGS"])
			checker_env.Library("Checker", ["checker.cpp", "IO.cpp"])
